/**************************************************************************
 * @doc CPAC
 * @module CPACSTL.H |  
 * Header file for the CPAC settlement functions.
 *
 * Product         :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   SoftPay Development Team (I_SP2000).
 * <nl>Notes       :
 *
 * @head3 CPAC Functions |
 * @index | CPAC
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 * 
 * Revision History
 * ------------------------------------------------------------------------
$Log: /SoftPay/SPK2SIM/Source/CPACSrc/CPACstl.h $
 * ------------------------------------------------------------------------
 ********************************************************************************/
extern int inImamModifyCurrentBatchRec(TRANSACTION_OBJECT* pobTran) ;
extern int inImamSendAllTC(TRANSACTION_OBJECT* pobTran); //
extern int inCPACSendDetailRecords(TRANSACTION_OBJECT* pobTran);
extern void vdCPACSetMT0510Error(TRANSACTION_OBJECT* pobTran);
extern int inReconcileCPAC(TRANSACTION_OBJECT* pobTran);
extern int inFinalCPACRecon(TRANSACTION_OBJECT* pobTran);
extern int inSettleCPAC(PROTOCOL_OBJECT* pobProtocol,PACKET_OBJECT* obPacket);
extern int inCPACCheckAndDoAutoSettle(TRANSACTION_OBJECT* pobTran);

extern void vdSetCPACAutoSettleDtTime(char* pchAutoSettle);
extern void vdGetCPACAutoSettleDtTime(CPAC_REC* srCPAC,char* pchAutoSettle);
extern int inGetDateTime(char* pszDateTime);
extern int inGetCPACTimeGap(CPAC_REC* srCPAC); 

extern int inCPACGetMerchEnable(TRANSACTION_OBJECT* pobTran);  
extern VS_BOOL fCPACGetMerchEnable(void);  
VS_BOOL fChkHostBatches(TRANSACTION_OBJECT* pobTran,int inCount);  
extern int inCPACSetAutoHandle(TRANSACTION_OBJECT* pobTran);

extern int inCPACCreateVariantStruct60(void); // CPAC_UNBKL added
extern int inCPACCreateVariantStruct63(void); // CPAC_UNBKL added
extern int inGetBatchFieldData(BATCH_REC* psrBRec,unsigned int uiFieldID,unsigned char* pchData,unsigned short shMaxLength);
// extern void vdAXAPDisplayFld63RespMsg(void);  //LIEM DISABLE THIS

extern int inGetUCLCommLink(void);

extern int inGlobalAutoHandle;

